<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" 
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <f:view locale="#{localeBean.locale}">
        <title>
            <head>
                <title><ui:insert name="title"/></title>


                <script language="JavaScript"> 
              function relogio(){ 
                  momentoAtual = new Date() 
                  hora = momentoAtual.getHours() 
                  minuto = momentoAtual.getMinutes() 
                  segundo = momentoAtual.getSeconds() 

                  horaImprimivel = hora + " : " + minuto + " : " + segundo 

                  document.form_relogio.relogio.value = horaImprimivel 

                  setTimeout("moveRelogio()",1000) 
              } 
                </script>
            </head>
            <link rel="stylesheet" type="text/css" href="../css/style.css" />
        </title>
    </f:view>
    <body onload="relogio()"> 


        <div id="container"> 
            <div id="header">

                <!--<div id="horas">
                    <form name="form_relogio"> 
                        hora certa <input type="text" name="relogio" size="10"> </input>
                    </form>

                </div> -->


                <div id="img_topo">
                    <img src="../imagens/topo_certo.jpg" alt="topo" width="150" height="30"></img>
                </div>
            </div> 

            <div id="navigation">
                <ul> 
                    <h:form>
                        <li><h:commandLink action="index" value= "#{msgs['system.index']}" /></li> 
                        <li><h:commandLink action="reservas" value= "#{msgs['system.reservas']}" /></li>
                        <li><h:commandLink action="cadastroUsuario" value= "#{msgs['system.cadastro']}" /></li>
                        <li><h:commandLink action="login" value="#{msgs['system.login']}" /></li>
                    </h:form>
                </ul> 

            </div>
            <h:form> 
                <div id="linguagens">
                    <h:selectOneMenu value="#{localeBean.locale}"
                                     valueChangeListener="#{localeBean.changeLocale}"
                                     onchange="this.form.submit()">
                        <f:selectItems value="#{localeBean.localeList}" />
                    </h:selectOneMenu> 
                </div>
            </h:form>


        </div>

    <ui:insert name="body" />



    <div id="container">
        <div id="footer">
            <div id="direitos">
                <font color="white" face="arial" size="3">
                Copyright © AirLine.com.br, 2011   
                </font></div>


        </div>
    </div>


</body>
</html>

